package com.cn.common.module.chat.request;

import com.cn.common.core.serial.Serializer;

/**
 * 私聊请求
 */
public class PrivateChatRequest extends Serializer {

    /**
     * 要向哪个会话发消息
     */
    private String targetLoginName;

    /**
     * 内容
     */
    private String context;
    /**
     * 消息类型 0 文字 ，1图片
     */
    private int typeu;


    public String getTargetLoginName() {
        return targetLoginName;
    }

    public void setTargetLoginName(String targetLoginName) {
        this.targetLoginName = targetLoginName;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public int getTypeu() {
        return typeu;
    }

    public void setTypeu(int typeu) {
        this.typeu = typeu;
    }

    @Override
    protected void read() {
        this.targetLoginName = readString();
        this.context = readString();
        this.typeu = readInt();
    }

    @Override
    protected void write() {
        writeString(targetLoginName);
        writeString(context);
        writeInt(typeu);
    }
}
